package com.example.signupservice.feign;

import com.example.commonservice.Common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "user-service", path = "/user")
public interface UserFeignClient {
    @GetMapping("/profile/getVolunteerName/{id}")
    Result<String> getVolunteerName(@PathVariable("id") Long id);
    @GetMapping("/profile/getVolunteerId/{userId}")
    Result<Long> getVolunteerId(@PathVariable("userId") Long userId);


}
